/**
 *    Copyright 2014 all reserved by Ihome corporate, any persons
 *    or corporate must not use this code for business purpose before
 *    permission is gained.
 *  
 *    ******                                      ******
 *    ******   I Love My Home       ******
 *    ******                                      ******
 *    
 *    Author: DMF
 *    Create Date: Mar 18, 2014
 *
 */
package com.ihome.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDAO {
        public long countAll(String clazz);
        public long countQuery(String hql);
        public void delById(Class clazz, Serializable id);
        public List listAll(String clazz);
        public List listAll(String clazz, int pageNo, int pageSize);
        public Object loadById(Class clazz, Serializable id);
        public Object loadObjec(String hql);
        public List query(String hql);
        public List query(String hql, int pageNo, int pageSize);
        public void saveOrUpdate(Object obj);
        public long update(String hql);
}
